package org.zhu.kotlin_springboot.controller

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
import org.zhu.kotlin_springboot.dao.UserDao

@RestController
class TestController(private val userDao: UserDao) {

    @GetMapping("/user")
    fun getAllUser(): Any = userDao.findAll()

}